package itheima.com.zuoye.d04;

public class Test {
    public static void main(String[] args) {
//        创建员工对象
        Workers workers = new Workers();
//        创建三个动物对象
        animals  cat = new Cat();
        animals dog = new Dog();
        animals pig = new Pig();
//        让员工喂养动物
         workers.work(cat);
         workers.work(dog);
         workers.work(pig);
    }

    }

